package com.eshop.modules.product.vo;

import java.util.Arrays;
import cn.hutool.core.util.StrUtil;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;

@ApiModel(value = "YxStoreProductReplyQueryVo对象", description = "评论表查询参数")
public class StoreProductReplyQueryVo implements Serializable
{
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("评论ID")
    private Long id;
    @ApiModelProperty("产品id")
    private Long productId;
    @ApiModelProperty("某种商品类型(普通商品、秒杀商品）")
    private String replyType;
    @ApiModelProperty("商品分数")
    private Integer productScore;
    @ApiModelProperty("服务分数")
    private Integer serviceScore;
    @ApiModelProperty("评论内容")
    private String comment;
    @ApiModelProperty("评论图片")
    private String[] pics;
    private String pictures;
    private String[] picturesArr;
    @ApiModelProperty("管理员回复内容")
    private String merchantReplyContent;
    @ApiModelProperty("管理员回复时间")
    private Date merchantReplyTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty("评价星星数")
    private String star;
    @ApiModelProperty("用户昵称")
    private String nickname;
    @ApiModelProperty("用户头像")
    private String avatar;
    @ApiModelProperty("商品sku")
    private String sku;
    @JsonIgnore
    private String cartInfo;
    
    public String[] getPicturesArr() {
        if (StrUtil.isNotEmpty((CharSequence)this.pictures)) {
            return this.pictures.split(",");
        }
        return new String[0];
    }
    
    public Long getId() {
        return this.id;
    }
    
    public Long getProductId() {
        return this.productId;
    }
    
    public String getReplyType() {
        return this.replyType;
    }
    
    public Integer getProductScore() {
        return this.productScore;
    }
    
    public Integer getServiceScore() {
        return this.serviceScore;
    }
    
    public String getComment() {
        return this.comment;
    }
    
    public String[] getPics() {
        return this.pics;
    }
    
    public String getPictures() {
        return this.pictures;
    }
    
    public String getMerchantReplyContent() {
        return this.merchantReplyContent;
    }
    
    public Date getMerchantReplyTime() {
        return this.merchantReplyTime;
    }
    
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public String getStar() {
        return this.star;
    }
    
    public String getNickname() {
        return this.nickname;
    }
    
    public String getAvatar() {
        return this.avatar;
    }
    
    public String getSku() {
        return this.sku;
    }
    
    public String getCartInfo() {
        return this.cartInfo;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setProductId(final Long productId) {
        this.productId = productId;
    }
    
    public void setReplyType(final String replyType) {
        this.replyType = replyType;
    }
    
    public void setProductScore(final Integer productScore) {
        this.productScore = productScore;
    }
    
    public void setServiceScore(final Integer serviceScore) {
        this.serviceScore = serviceScore;
    }
    
    public void setComment(final String comment) {
        this.comment = comment;
    }
    
    public void setPics(final String[] pics) {
        this.pics = pics;
    }
    
    public void setPictures(final String pictures) {
        this.pictures = pictures;
    }
    
    public void setPicturesArr(final String[] picturesArr) {
        this.picturesArr = picturesArr;
    }
    
    public void setMerchantReplyContent(final String merchantReplyContent) {
        this.merchantReplyContent = merchantReplyContent;
    }
    
    public void setMerchantReplyTime(final Date merchantReplyTime) {
        this.merchantReplyTime = merchantReplyTime;
    }
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }
    
    public void setStar(final String star) {
        this.star = star;
    }
    
    public void setNickname(final String nickname) {
        this.nickname = nickname;
    }
    
    public void setAvatar(final String avatar) {
        this.avatar = avatar;
    }
    
    public void setSku(final String sku) {
        this.sku = sku;
    }
    
    @JsonIgnore
    public void setCartInfo(final String cartInfo) {
        this.cartInfo = cartInfo;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreProductReplyQueryVo)) {
            return false;
        }
        final StoreProductReplyQueryVo other = (StoreProductReplyQueryVo)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        Label_0102: {
            if (this$productId == null) {
                if (other$productId == null) {
                    break Label_0102;
                }
            }
            else if (this$productId.equals(other$productId)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$productScore = this.getProductScore();
        final Object other$productScore = other.getProductScore();
        Label_0139: {
            if (this$productScore == null) {
                if (other$productScore == null) {
                    break Label_0139;
                }
            }
            else if (this$productScore.equals(other$productScore)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$serviceScore = this.getServiceScore();
        final Object other$serviceScore = other.getServiceScore();
        Label_0176: {
            if (this$serviceScore == null) {
                if (other$serviceScore == null) {
                    break Label_0176;
                }
            }
            else if (this$serviceScore.equals(other$serviceScore)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$replyType = this.getReplyType();
        final Object other$replyType = other.getReplyType();
        Label_0213: {
            if (this$replyType == null) {
                if (other$replyType == null) {
                    break Label_0213;
                }
            }
            else if (this$replyType.equals(other$replyType)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$comment = this.getComment();
        final Object other$comment = other.getComment();
        Label_0250: {
            if (this$comment == null) {
                if (other$comment == null) {
                    break Label_0250;
                }
            }
            else if (this$comment.equals(other$comment)) {
                break Label_0250;
            }
            return false;
        }
        if (!Arrays.deepEquals(this.getPics(), other.getPics())) {
            return false;
        }
        final Object this$pictures = this.getPictures();
        final Object other$pictures = other.getPictures();
        Label_0303: {
            if (this$pictures == null) {
                if (other$pictures == null) {
                    break Label_0303;
                }
            }
            else if (this$pictures.equals(other$pictures)) {
                break Label_0303;
            }
            return false;
        }
        if (!Arrays.deepEquals(this.getPicturesArr(), other.getPicturesArr())) {
            return false;
        }
        final Object this$merchantReplyContent = this.getMerchantReplyContent();
        final Object other$merchantReplyContent = other.getMerchantReplyContent();
        Label_0356: {
            if (this$merchantReplyContent == null) {
                if (other$merchantReplyContent == null) {
                    break Label_0356;
                }
            }
            else if (this$merchantReplyContent.equals(other$merchantReplyContent)) {
                break Label_0356;
            }
            return false;
        }
        final Object this$merchantReplyTime = this.getMerchantReplyTime();
        final Object other$merchantReplyTime = other.getMerchantReplyTime();
        Label_0393: {
            if (this$merchantReplyTime == null) {
                if (other$merchantReplyTime == null) {
                    break Label_0393;
                }
            }
            else if (this$merchantReplyTime.equals(other$merchantReplyTime)) {
                break Label_0393;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        Label_0430: {
            if (this$createTime == null) {
                if (other$createTime == null) {
                    break Label_0430;
                }
            }
            else if (this$createTime.equals(other$createTime)) {
                break Label_0430;
            }
            return false;
        }
        final Object this$star = this.getStar();
        final Object other$star = other.getStar();
        Label_0467: {
            if (this$star == null) {
                if (other$star == null) {
                    break Label_0467;
                }
            }
            else if (this$star.equals(other$star)) {
                break Label_0467;
            }
            return false;
        }
        final Object this$nickname = this.getNickname();
        final Object other$nickname = other.getNickname();
        Label_0504: {
            if (this$nickname == null) {
                if (other$nickname == null) {
                    break Label_0504;
                }
            }
            else if (this$nickname.equals(other$nickname)) {
                break Label_0504;
            }
            return false;
        }
        final Object this$avatar = this.getAvatar();
        final Object other$avatar = other.getAvatar();
        Label_0541: {
            if (this$avatar == null) {
                if (other$avatar == null) {
                    break Label_0541;
                }
            }
            else if (this$avatar.equals(other$avatar)) {
                break Label_0541;
            }
            return false;
        }
        final Object this$sku = this.getSku();
        final Object other$sku = other.getSku();
        Label_0578: {
            if (this$sku == null) {
                if (other$sku == null) {
                    break Label_0578;
                }
            }
            else if (this$sku.equals(other$sku)) {
                break Label_0578;
            }
            return false;
        }
        final Object this$cartInfo = this.getCartInfo();
        final Object other$cartInfo = other.getCartInfo();
        if (this$cartInfo == null) {
            if (other$cartInfo == null) {
                return true;
            }
        }
        else if (this$cartInfo.equals(other$cartInfo)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreProductReplyQueryVo;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        final Object $productScore = this.getProductScore();
        result = result * 59 + (($productScore == null) ? 43 : $productScore.hashCode());
        final Object $serviceScore = this.getServiceScore();
        result = result * 59 + (($serviceScore == null) ? 43 : $serviceScore.hashCode());
        final Object $replyType = this.getReplyType();
        result = result * 59 + (($replyType == null) ? 43 : $replyType.hashCode());
        final Object $comment = this.getComment();
        result = result * 59 + (($comment == null) ? 43 : $comment.hashCode());
        result = result * 59 + Arrays.deepHashCode(this.getPics());
        final Object $pictures = this.getPictures();
        result = result * 59 + (($pictures == null) ? 43 : $pictures.hashCode());
        result = result * 59 + Arrays.deepHashCode(this.getPicturesArr());
        final Object $merchantReplyContent = this.getMerchantReplyContent();
        result = result * 59 + (($merchantReplyContent == null) ? 43 : $merchantReplyContent.hashCode());
        final Object $merchantReplyTime = this.getMerchantReplyTime();
        result = result * 59 + (($merchantReplyTime == null) ? 43 : $merchantReplyTime.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        final Object $star = this.getStar();
        result = result * 59 + (($star == null) ? 43 : $star.hashCode());
        final Object $nickname = this.getNickname();
        result = result * 59 + (($nickname == null) ? 43 : $nickname.hashCode());
        final Object $avatar = this.getAvatar();
        result = result * 59 + (($avatar == null) ? 43 : $avatar.hashCode());
        final Object $sku = this.getSku();
        result = result * 59 + (($sku == null) ? 43 : $sku.hashCode());
        final Object $cartInfo = this.getCartInfo();
        result = result * 59 + (($cartInfo == null) ? 43 : $cartInfo.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreProductReplyQueryVo(id=" + this.getId() + ", productId=" + this.getProductId() + ", replyType=" + this.getReplyType() + ", productScore=" + this.getProductScore() + ", serviceScore=" + this.getServiceScore() + ", comment=" + this.getComment() + ", pics=" + Arrays.deepToString(this.getPics()) + ", pictures=" + this.getPictures() + ", picturesArr=" + Arrays.deepToString(this.getPicturesArr()) + ", merchantReplyContent=" + this.getMerchantReplyContent() + ", merchantReplyTime=" + this.getMerchantReplyTime() + ", createTime=" + this.getCreateTime() + ", star=" + this.getStar() + ", nickname=" + this.getNickname() + ", avatar=" + this.getAvatar() + ", sku=" + this.getSku() + ", cartInfo=" + this.getCartInfo() + ")";
    }
}
